<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

?>

<div id="main">
    <div id="container">
        <div id="crop-layer"></div>
        <img src="../../assets/img/wonder.jpg">
    </div>
    
    <?php echo validation_errors(); ?>
    
    <?php
    echo form_open('news/crop');
    $data = array(
        'id' => 'buttonCrop',
    );
    
    $data2 = array(
        'type'  => 'hidden',
        'name'  => 'x',
        'id'    => 'x',
        'value' => '0'
    );

    echo form_input($data2);
    
    $data3 = array(
        'type'  => 'hidden',
        'name'  => 'y',
        'id'    => 'y',
        'value' => '0'
    );

    echo form_input($data3);
    
    $data4 = array(
        'type'  => 'hidden',
        'name'  => 'height',
        'id'    => 'height',
        'value' => '500'
    );

    echo form_input($data4);
    
    $data5 = array(
        'type'  => 'hidden',
        'name'  => 'width',
        'id'    => 'width',
        'value' => '100'
    );

    echo form_input($data5);
    
    echo form_submit('mysubmit', 'Submit Post!', $data);  
     ?>
    </form>
    
</div>